package com.imohoo.libs.retrofit2.converter;

import java.util.HashMap;

/**
 * Created by zhaobo on 2016/10/18.
 */
public class SpRequest extends HashMap<String, Object> {
    private long user_id;
    private String user_token;

    public SpRequest(String cmd, String opt) {
        setHead(cmd, opt);
    }

    public SpRequest setHead(String cmd, String opt) {
        set("cmd", cmd);
        set("opt", opt);
        return this;
    }

    public SpRequest set(String key, Object value) {
        put(key, value);
        return this;
    }

    public String getUser_token() {
        return (String) get("user_id");
    }

    public SpRequest setUser_token(String user_token) {
        set("user_token", user_token);
        return this;
    }

    public SpRequest setUser_id(long user_id) {
        set("user_id", user_id);
        return this;
    }

    public String getUser_id() {
        return (String) get("user_id");
    }
}
